/* 认证页面样式 */

.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFF8DC 100%);
}

.auth-card {
    background-color: var(--secondary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 16px;
}

/* 登录方式切换 */
.login-tabs {
    display: flex;
    background-color: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 4px;
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.tab-btn.active {
    background-color: var(--secondary-color);
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 表单样式 */
.login-form,
.register-form {
    display: none;
}

.login-form.active,
.register-form.active {
    display: block;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group i {
    position: absolute;
    left: 16px;
    color: var(--text-light);
    font-size: 16px;
    z-index: 2;
}

.input-group .form-input {
    padding-left: 48px;
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--text-color);
}

.send-sms-btn {
    position: absolute;
    right: 8px;
    background-color: var(--primary-color);
    border: none;
    color: var(--text-color);
    padding: 8px 12px;
    border-radius: var(--border-radius);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.send-sms-btn:hover {
    background-color: var(--primary-dark);
}

.send-sms-btn:disabled {
    background-color: var(--border-color);
    color: var(--text-light);
    cursor: not-allowed;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: var(--transition);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-color);
    font-size: 12px;
    font-weight: bold;
}

.forgot-link {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 14px;
}

.forgot-link:hover {
    text-decoration: underline;
}

.terms-link {
    color: var(--primary-dark);
    text-decoration: none;
}

.terms-link:hover {
    text-decoration: underline;
}

/* 按钮样式 */
.btn-full {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
}

/* 密码强度指示器 */
.password-strength {
    margin-top: 8px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 4px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: var(--transition);
    border-radius: 2px;
}

.strength-fill.weak {
    width: 33.33%;
    background-color: #ff6b6b;
}

.strength-fill.medium {
    width: 66.66%;
    background-color: #ffd93d;
}

.strength-fill.strong {
    width: 100%;
    background-color: #6bcf7f;
}

.strength-text {
    font-size: 12px;
    color: var(--text-light);
}

/* 认证页脚 */
.auth-footer {
    text-align: center;
    margin: 30px 0;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-light);
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* 第三方登录 */
.social-login {
    margin-top: 30px;
}

.divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.divider span {
    background-color: var(--secondary-color);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
}

.social-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.social-btn.wechat:hover {
    border-color: #07c160;
    background-color: #07c160;
    color: white;
}

.social-btn.qq:hover {
    border-color: #12b7f5;
    background-color: #12b7f5;
    color: white;
}

.social-btn i {
    font-size: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 28px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 24px;
    }
    
    .login-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        margin-bottom: 4px;
    }
} 